<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\modules\user\model\User | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.modules.user.model.html" title="Summary of application\modules\user\model"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li>
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li class="active">
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-application.modules.user.model.BgTemplate.html">BgTemplate</a></li>
				<li><a href="class-application.modules.user.model.FailedIp.html">FailedIp</a></li>
				<li><a href="class-application.modules.user.model.FailedLogin.html">FailedLogin</a></li>
				<li><a href="class-application.modules.user.model.OnlineTime.html">OnlineTime</a></li>
				<li class="active"><a href="class-application.modules.user.model.User.html">User</a></li>
				<li><a href="class-application.modules.user.model.UserBinding.html">UserBinding</a></li>
				<li><a href="class-application.modules.user.model.UserCount.html">UserCount</a></li>
				<li><a href="class-application.modules.user.model.UserGroup.html">UserGroup</a></li>
				<li><a href="class-application.modules.user.model.UserProfile.html">UserProfile</a></li>
				<li><a href="class-application.modules.user.model.UserStatus.html">UserStatus</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class User</h1>



	<dl class="tree well">
		<dd style="padding-left:0px">
CActiveRecord
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
			<a href="class-application.core.model.Model.html"><span>application\core\model\Model</span></a>
			
			
			
		</dd>
		<dd style="padding-left:60px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>application\modules\user\model\User</span></b>			
			
			
		</dd>
	</dl>








	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.modules.html">modules</a>\<a href="namespace-application.modules.user.html">user</a>\<a href="namespace-application.modules.user.model.html">model</a><br>
		

				<b>Copyright:</b>
				Copyright &copy; 2012-2013 IBOS Inc<br>
				<b>Author:</b>
				banyanCheung <a href="m&#97;&#105;&#108;&#116;&#111;&#58;&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;">&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;</a><br>
			<b>Located at</b> system/modules/user/model/User.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="model" id="_model">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_model">#</a>
			<code>model( <span> <var>$className</var> = __CLASS__ </span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="tableName" id="_tableName">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_tableName">#</a>
			<code>tableName( )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="userNameExists" id="_userNameExists">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_userNameExists">#</a>
			<code>userNameExists( <span>string <var>$name</var></span> )</code>

			<div class="description short">
				<p>检查用户名是否存在</p>
			</div>

			<div class="description detailed hidden">
				<p>检查用户名是否存在</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$name</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchByRealname" id="_fetchByRealname">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchByRealname">#</a>
			<code>fetchByRealname( <span>string <var>$name</var></span> )</code>

			<div class="description short">
				<p>根据用户真实姓名查找用户信息</p>
			</div>

			<div class="description detailed hidden">
				<p>根据用户真实姓名查找用户信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$name</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkUnique" id="_checkUnique">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkUnique">#</a>
			<code>checkUnique( <span>需要插入的用户 <var>$data</var></span>, <span>唯一字段的配置 <var>$uniqueConfig</var> = <span class="php-keyword1">array</span>( <span class="php-quote">'mobile'</span> =&gt; <span class="php-quote">'手机号'</span>, <span class="php-quote">'username'</span> =&gt; <span class="php-quote">'用户名'</span>, ) </span> )</code>

			<div class="description short">
				<p>检查唯一字段</p>
			</div>

			<div class="description detailed hidden">
				<p>检查唯一字段</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$uniqueConfig</var></dt>
						<dd>$uniqueConfig，格式：key对应数据表里的字段，value对应这个字段的解释</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByRealnames" id="_fetchAllByRealnames">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByRealnames">#</a>
			<code>fetchAllByRealnames( <span>type <var>$realnames</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$realnames</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchRealnameByUid" id="_fetchRealnameByUid">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchRealnameByUid">#</a>
			<code>fetchRealnameByUid( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>根据UID查找用户真实姓名</p>
			</div>

			<div class="description detailed hidden">
				<p>根据UID查找用户真实姓名</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchRealnamesByUids" id="_fetchRealnamesByUids">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchRealnamesByUids">#</a>
			<code>fetchRealnamesByUids( <span>mixed <var>$uids</var></span>, <span>string <var>$glue</var> = <span class="php-quote">','</span> </span> )</code>

			<div class="description short">
				<p>查找用户真实姓名，返回$glue分隔的字符串格式</p>
			</div>

			<div class="description detailed hidden">
				<p>查找用户真实姓名，返回$glue分隔的字符串格式</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd>用户ID数组或=逗号分隔ID串</dd>
						<dt><var>$glue</var></dt>
						<dd>分隔符</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchByUid" id="_fetchByUid">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchByUid">#</a>
			<code>fetchByUid( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>根据用户id查找一条用户数据</p>
			</div>

			<div class="description detailed hidden">
				<p>根据用户id查找一条用户数据</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="makeCache" id="_makeCache">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_makeCache">#</a>
			<code>makeCache( <span> <var>$users</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllFitDeptUser" id="_fetchAllFitDeptUser">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllFitDeptUser">#</a>
			<code>fetchAllFitDeptUser( <span> <var>$dept</var></span> )</code>

			<div class="description short">
				<p>查找部门内符合条件的人</p>
			</div>

			<div class="description detailed hidden">
				<p>查找部门内符合条件的人</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllOtherManager" id="_fetchAllOtherManager">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllOtherManager">#</a>
			<code>fetchAllOtherManager( <span> <var>$dept</var></span> )</code>

			<div class="description short">
				<p>没设部门主管的情况下查找其他有权限的人</p>
			</div>

			<div class="description detailed hidden">
				<p>没设部门主管的情况下查找其他有权限的人</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByUids" id="_fetchAllByUids">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByUids">#</a>
			<code>fetchAllByUids( <span>array <var>$uids</var></span> )</code>

			<div class="description short">
				<p>根据用户id数组查找多条用户数据</p>
			</div>

			<div class="description detailed hidden">
				<p>根据用户id数组查找多条用户数据</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchUidByPosId" id="_fetchUidByPosId">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchUidByPosId">#</a>
			<code>fetchUidByPosId( <span>integer <var>$posId</var></span>, <span>boolean <var>$returnDisabled</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>根据岗位id获取所有uid</p>
			</div>

			<div class="description detailed hidden">
				<p>根据岗位id获取所有uid</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$posId</var></dt>
						<dd></dd>
						<dt><var>$returnDisabled</var></dt>
						<dd>是否禁用用户一起返回</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>


					<h4>Author</h4>
					<div class="list">
							Ring<br>
					</div>
					<h4>Refactor</h4>
					<div class="list">
							banyan<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="fetchUidByRoleId" id="_fetchUidByRoleId">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchUidByRoleId">#</a>
			<code>fetchUidByRoleId( <span>integer <var>$roleId</var></span>, <span>boolean <var>$returnDisabled</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>根据角色id获取所有uid</p>
			</div>

			<div class="description detailed hidden">
				<p>根据角色id获取所有uid</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$roleId</var></dt>
						<dd></dd>
						<dt><var>$returnDisabled</var></dt>
						<dd>是否禁用用户一起返回</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllUid" id="_fetchAllUid">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllUid">#</a>
			<code>fetchAllUid( <span>boolean <var>$returnDisabled</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>获取所有的uid（暂时crm用到）</p>
			</div>

			<div class="description detailed hidden">
				<p>获取所有的uid（暂时crm用到）</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$returnDisabled</var></dt>
						<dd>是否禁用用户一起返回</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllUidByPositionIds" id="_fetchAllUidByPositionIds">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllUidByPositionIds">#</a>
			<code>fetchAllUidByPositionIds( <span>mix <var>$positionIds</var></span>, <span>boolean <var>$returnDisabled</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>根据多个岗位id获取所有uid</p>
			</div>

			<div class="description detailed hidden">
				<p>根据多个岗位id获取所有uid</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$positionIds</var></dt>
						<dd></dd>
						<dt><var>$returnDisabled</var></dt>
						<dd>是否禁用用户一起返回</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllUidByDeptid" id="_fetchAllUidByDeptid">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllUidByDeptid">#</a>
			<code>fetchAllUidByDeptid( <span>integer <var>$deptId</var></span>, <span>boolean <var>$returnDisabled</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>根据部门id获取所有uid</p>
			</div>

			<div class="description detailed hidden">
				<p>根据部门id获取所有uid</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$deptId</var></dt>
						<dd></dd>
						<dt><var>$returnDisabled</var></dt>
						<dd>是否禁用用户一起返回</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllUidByDeptids" id="_fetchAllUidByDeptids">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllUidByDeptids">#</a>
			<code>fetchAllUidByDeptids( <span>mix <var>$deptIds</var></span>, <span>boolean <var>$returnDisabled</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>根据多个部门id获取所有uid</p>
			</div>

			<div class="description detailed hidden">
				<p>根据多个部门id获取所有uid</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$deptIds</var></dt>
						<dd></dd>
						<dt><var>$returnDisabled</var></dt>
						<dd>是否禁用用户一起返回</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllCredit" id="_fetchAllCredit">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllCredit">#</a>
			<code>fetchAllCredit( )</code>

			<div class="description short">
				<p>查找所有用户UID以积分高低排序</p>
			</div>

			<div class="description detailed hidden">
				<p>查找所有用户UID以积分高低排序</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByDeptIdType" id="_fetchAllByDeptIdType">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByDeptIdType">#</a>
			<code>fetchAllByDeptIdType( <span>string <var>$deptId</var></span>, <span>integer <var>$type</var></span>, <span>integer <var>$limit</var></span>, <span> <var>$offset</var></span> )</code>

			<div class="description short">
				<p>根据部门ID,类型查找数据</p>
			</div>

			<div class="description detailed hidden">
				<p>根据部门ID,类型查找数据</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$deptId</var></dt>
						<dd>$type 查询类型</dd>
						<dt><var>$type</var></dt>
						<dd>$limit</dd>
						<dt><var>$limit</var></dt>
						<dd>$offset</dd>
						<dt><var>$offset</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="updateByUids" id="_updateByUids">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateByUids">#</a>
			<code>updateByUids( <span>mixed <var>$uids</var></span>, <span>array <var>$attributes</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>批量更新用户信息</p>
			</div>

			<div class="description detailed hidden">
				<p>批量更新用户信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd>用户ID字符串或数组</dd>
						<dt><var>$attributes</var></dt>
						<dd>要更新的值</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="updateByUid" id="_updateByUid">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateByUid">#</a>
			<code>updateByUid( <span>type <var>$uid</var></span>, <span>type <var>$attributes</var></span> )</code>

			<div class="description short">
				<p>按UID更新用户信息</p>
			</div>

			<div class="description detailed hidden">
				<p>按UID更新用户信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
						<dt><var>$attributes</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countByDeptIdType" id="_countByDeptIdType">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countByDeptIdType">#</a>
			<code>countByDeptIdType( <span>string <var>$deptId</var></span>, <span> <var>$type</var></span> )</code>

			<div class="description short">
				<p>根据部门ID,类型统计人数</p>
			</div>

			<div class="description detailed hidden">
				<p>根据部门ID,类型统计人数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$deptId</var></dt>
						<dd>$type 查询类型</dd>
						<dt><var>$type</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getConditionByDeptIdType" id="_getConditionByDeptIdType">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getConditionByDeptIdType">#</a>
			<code>getConditionByDeptIdType( <span>string <var>$deptId</var></span>, <span> <var>$type</var></span> )</code>

			<div class="description short">
				<p>根据类型获取条件语句</p>
			</div>

			<div class="description detailed hidden">
				<p>根据类型获取条件语句</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$deptId</var></dt>
						<dd>$type 查询类型</dd>
						<dt><var>$type</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>SQL where 字段
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchSubUidByUid" id="_fetchSubUidByUid">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchSubUidByUid">#</a>
			<code>fetchSubUidByUid( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>通过uid取得该用户所有下属id</p>
			</div>

			<div class="description detailed hidden">
				<p>通过uid取得该用户所有下属id</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchSubByPk" id="_fetchSubByPk">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchSubByPk">#</a>
			<code>fetchSubByPk( <span>integer <var>$uid</var></span>, <span> <var>$limitCondition</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>通过uid取得该用户所有下属(日程模块和日志模块用到)</p>
			</div>

			<div class="description detailed hidden">
				<p>通过uid取得该用户所有下属(日程模块和日志模块用到)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
						<dt><var>$limitCondition</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllUidsByStatus" id="_fetchAllUidsByStatus">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllUidsByStatus">#</a>
			<code>fetchAllUidsByStatus( <span>integer <var>$status</var></span> )</code>

			<div class="description short">
				<p>获得某种状态的所有用户id数组</p>
			</div>

			<div class="description detailed hidden">
				<p>获得某种状态的所有用户id数组</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$status</var></dt>
						<dd>状态（0：启用 1：锁定 2：禁用）</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="removeDisableUids" id="_removeDisableUids">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_removeDisableUids">#</a>
			<code>removeDisableUids( <span>mix <var>$uids</var></span> )</code>

			<div class="description short">
				<p>处理一组uid，将禁用的uid去除掉</p>
			</div>

			<div class="description detailed hidden">
				<p>处理一组uid，将禁用的uid去除掉</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd>uid一维数组或者逗号隔开的字符串</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAvatarByUid" id="_fetchAvatarByUid">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAvatarByUid">#</a>
			<code>fetchAvatarByUid( <span>integer <var>$uid</var></span>, <span>string <var>$size</var> = <span class="php-quote">'m'</span> </span> )</code>

			<div class="description short">
				<p>根据用户id获取头像</p>
			</div>

			<div class="description detailed hidden">
				<p>根据用户id获取头像</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户id</dd>
						<dt><var>$size</var></dt>
						<dd>大小标识，b大，m中，s小</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchMobilesByUids" id="_fetchMobilesByUids">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchMobilesByUids">#</a>
			<code>fetchMobilesByUids( <span>mixed <var>$uids</var></span> )</code>

			<div class="description short">
				<p>根据uids获取手机号码</p>
			</div>

			<div class="description detailed hidden">
				<p>根据uids获取手机号码</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>分号隔开的电话号码
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countNumsByPositionId" id="_countNumsByPositionId">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countNumsByPositionId">#</a>
			<code>countNumsByPositionId( <span>integer <var>$positionid</var></span> )</code>

			<div class="description short">
				<p>根据岗位ID统计用户数（忽略辅助岗位）</p>
			</div>

			<div class="description detailed hidden">
				<p>根据岗位ID统计用户数（忽略辅助岗位）</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$positionid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countNumsByRoleId" id="_countNumsByRoleId">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countNumsByRoleId">#</a>
			<code>countNumsByRoleId( <span>integer <var>$roleId</var></span> )</code>

			<div class="description short">
				<p>根据角色ID统计用户数（忽略辅助角色）</p>
			</div>

			<div class="description detailed hidden">
				<p>根据角色ID统计用户数（忽略辅助角色）</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$roleId</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="updateByConditions" id="_updateByConditions">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateByConditions">#</a>
			<code>updateByConditions( <span>mixed <var>$uids</var></span>, <span>array <var>$attributes</var> = <span class="php-keyword1">array</span>()</span>, <span> <var>$condition</var> = <span class="php-quote">&quot;&quot;</span> </span> )</code>

			<div class="description short">
				<p>根据某个条件更新用户信息</p>
			</div>

			<div class="description detailed hidden">
				<p>根据某个条件更新用户信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd>用户ID字符串或数组</dd>
						<dt><var>$attributes</var></dt>
						<dd>要更新字段值</dd>
						<dt><var>$condition</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>


					<h4>Author</h4>
					<div class="list">
							Sam 2015-08-21 <a href="&#x6d;&#x61;&#x69;&#x6c;&#116;&#111;&#58;&#103;&#122;&#x78;&#x67;&#x73;&#x40;&#x69;&#98;&#111;&#115;&#46;&#99;&#x6f;&#x6d;&#x2e;&#x63;&#x6e;">&#103;&#122;&#x78;&#x67;&#x73;&#x40;&#x69;&#98;&#111;&#115;&#46;&#99;&#x6f;&#x6d;&#x2e;&#x63;&#x6e;</a><br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="checkIsExistByMobile" id="_checkIsExistByMobile">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkIsExistByMobile">#</a>
			<code>checkIsExistByMobile( <span> <var>$mobile</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Methods inherited from <a href="class-application.core.model.Model.html#methods">application\core\model\Model</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.model.Model.html#_add">add()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_beforeDelete">beforeDelete()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_create">create()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_deleteByPk">deleteByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetch">fetch()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAll">fetchAll()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllByAttributes">fetchAllByAttributes()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllByPk">fetchAllByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllSortByPk">fetchAllSortByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchByAttributes">fetchByAttributes()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchByPk">fetchByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchCache">fetchCache()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchCaches">fetchCaches()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getCacheKey">getCacheKey()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getIsAllowCache">getIsAllowCache()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getMaxId">getMaxId()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getModelClass">getModelClass()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_init">init()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_modify">modify()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_remove">remove()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_updateAll">updateAll()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_updateByPk">updateByPk()</a></code>
			</p>
		</div>










		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Properties inherited from <a href="class-application.core.model.Model.html#properties">application\core\model\Model</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.model.Model.html#$allowCache"><var>$allowCache</var></a></code>, 
				<code><a href="class-application.core.model.Model.html#$cacheLife"><var>$cacheLife</var></a></code>
			</p>
		</div>





</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
